Skip to content

Use isMethod instead of a direct comparison #1775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

acasademont
Copy link
Contributor

The code is neater if we use the dedicated method available in the Request class as of 2.1

The code is neater if we use the dedicated method available in the Request class
@acasademont
Copy link
Contributor Author

This patch could also be applied to the 2.1 branch.

weaverryan added a commit that referenced this pull request Oct 2, 2012
@weaverryan
Copy link
Member

Hi Albert!

Cool! I've patched this into the 2.0 branch at sha: 28e1113

I also changed a few other locations where I found this as well as changing the string to be POST instead of post. Obviously, this isn't necessary since it normalizes, but POST is the more correct form to refer to it.

Thanks!

@weaverryan weaverryan closed this Oct 2, 2012
@weaverryan
Copy link
Member

Rather - I patched against the 2.1 branch - not the 2.0 branch. Old habit :)

Thanks!

@acasademont
Copy link
Contributor Author

Thanks, yeah, i agree that POST is better than post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants